﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Planes.aspx.cs" Inherits="UI.Web.Planes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="bodyContentPlaceHolder" runat="server">
<link id="cssGrid" rel="stylesheet" type="text/css" href="css/gridCSS.css"/> 
<link id="Link1" rel="stylesheet" type="text/css" href="css/MainStyle.css"/> 

    <asp:GridView ID="gvPlanes" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" onselectedindexchanged="gvPlanes_SelectedIndexChanged"
        CssClass="table" AllowPaging="True" 
        PageSize="12">
        <FooterStyle CssClass="FooterStyle" />  
        <PagerStyle CssClass="gridpager" />
        <RowStyle CssClass="RowStyle" /> 
        <HeaderStyle CssClass="HeaderStyle" /> 
        <AlternatingRowStyle CssClass="AlternateRowStyle" />
        
        <Columns>
            <asp:BoundField Headertext="Id" DataField="Id" />
            <asp:BoundField Headertext="Descripcion" DataField="Descripcion" />
            <asp:BoundField Headertext="Especialidad" DataField="Idespecialidad" />
            <asp:CommandField HeaderText="Seleccionar" ShowSelectButton="true" />

        </Columns>
    </asp:GridView>
    
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <asp:Label ID="nombreLabel1" runat="server" Text="Id: "></asp:Label>
                <asp:TextBox ID="txtId" runat="server" Enabled="False"></asp:TextBox>
                <br />
                <asp:Label ID="apellidoLabel1" runat="server" Text="Descripcion: "></asp:Label>
                <asp:TextBox ID="txtDescripcion" runat="server"></asp:TextBox>
                <br />
                 <asp:Label ID="Label1" runat="server" Text="Especialidad: "></asp:Label>
                <asp:TextBox ID="txtEspecialidad" runat="server"></asp:TextBox>
                

                
              <asp:Panel ID="formActionsPanel" runat="server">
                <br />
                <asp:Button ID="btnAceptar" runat="server" CssClass="buttonAceptar" 
                      Text="Aceptar" onclick="btnAceptar_Click"  />
                <asp:Button ID="btnCancelar" runat="server" CssClass="buttonEliminar" 
                      Text="Cancelar" onclick="btnCancelar_Click"  />

              </asp:Panel>
        </asp:Panel>
                <br />
                <asp:Panel ID="gridActionsPlanes" runat="server">
                <asp:Button ID="btnNuevo" runat="server" CssClass="button" Text="Nuevo" 
                        onclick="btnNuevo_Click" />
                <asp:Button ID="btnEditar" runat="server" CssClass="button" Text="Editar" 
                        onclick="btnEditar_Click" />
                <asp:Button ID="btnEliminar" runat="server" CssClass="buttonEliminar" 
                        Text="Eliminar" onclick="btnEliminar_Click" />
                </asp:Panel>

</asp:Content>